// models/row-column.model.ts
import { StyleDefinition } from './style.model';

/**
 * 行定义
 */
export class RowDefinition {
  /** 行索引 (0-based) */
  index: number;
  /** 行高度 */
  height: number;
  /** 行的统一基础样式 (可选) */
  style?: StyleDefinition;

  constructor(index: number, height: number, style?: StyleDefinition) {
    this.index = index;
    this.height = height;
    this.style = style;
  }
}

/**
 * 列定义
 */
export class ColumnDefinition {
  /** 列索引 (0-based) */
  index: number;
  /** 列宽度 */
  width: number;
  /** 列的统一基础样式 (可选) */
  style?: StyleDefinition;

  constructor(index: number, width: number, style?: StyleDefinition) {
    this.index = index;
    this.width = width;
    this.style = style;
  }
}
